package pos.tests;

import java.util.Iterator;
import java.util.List;

import pos.domain.Address;
import pos.domain.Product;
import pos.domain.ProductStore;

public class TestListProducts {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		
		ProductStore ps = ProductStore.getInstance();
		List products = ps.getProducts();
		
		System.out.println("Description----" + "---Price---");
		for (Iterator iterator = products.iterator(); iterator.hasNext();) {
			Product p = (Product) iterator.next();
			System.out.println(p.getDescription() + "       "+ p.getPrice());
			
		}
					
	}

}
